package cn.caishen.report.common.config;

import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.logging.Log;

/**
 * @author LB
 */
@Slf4j
public class MybatisPlusOutImpl implements Log {

    public MybatisPlusOutImpl(String clazz) {

    }

    @Override
    public boolean isDebugEnabled() {
        return true;
    }

    @Override
    public boolean isTraceEnabled() {
        return true;
    }

    @Override
    public void error(String s, Throwable e) {
        log.error(s);
        e.printStackTrace(System.err);
    }

    @Override
    public void error(String s) {
        log.error("MybatisPlusOutImpl::" + s);
    }

    @Override
    public void debug(String s) {
        log.debug("MybatisPlusOutImpl::" + s);
    }

    @Override
    public void trace(String s) {
        log.trace("MybatisPlusOutImpl::" + s);
    }

    @Override
    public void warn(String s) {
        log.warn("MybatisPlusOutImpl::" + s);
    }
}
